package com.schedule.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.schedule.mapper.CompetitionMapper;
import com.schedule.pojo.Competition;
import com.schedule.service.ICompetitionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author star
 * @since 2022-03-08
 */
@Service
public class CompetitionServiceImpl extends ServiceImpl<CompetitionMapper, Competition> implements ICompetitionService {


    @Autowired
    private CompetitionMapper competitionMapper;

    /**
     * 获取比赛编排结果
     * @return
     */
    @Override
    public List<Competition> getArrangeResult() {
        return competitionMapper.getArrangeResult();
    }
}
